package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xiaoc.bulldozer.common.dao.StatisticMonthlyMapper;
import com.xiaoc.bulldozer.common.dto.StatisticMonthlyDto;
import com.xiaoc.bulldozer.common.dto.StatisticMonthlyQueryDto;
import com.xiaoc.bulldozer.common.model.StatisticMonthly;
import com.xiaoc.bulldozer.common.service.StatisticMonthlyService;

/**
 * StatisticMonthly Service 实现类
 * 
 * @author Danfo Yam
 * 
 * @date 2018-09-14 16:20:57
 */
@Service("statisticMonthlyService")
public class StatisticMonthlyServiceImpl implements StatisticMonthlyService {

    @Resource
    private StatisticMonthlyMapper statisticMonthlyMapper;

    @Override
    public Integer getStatisticMonthlyCountByCondition(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.getStatisticMonthlyCountByCondition(statisticMonthlyQueryDto);
    }

    @Override
    public List<StatisticMonthly> getStatisticMonthlyListByCondition(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.getStatisticMonthlyListByCondition(statisticMonthlyQueryDto);
    }

    @Override
    public StatisticMonthly getStatisticMonthlyById(Integer id) {
        return statisticMonthlyMapper.getStatisticMonthlyById(id);
    }

    @Override
    public List<StatisticMonthly> getAllStatisticMonthlyList() {
        return statisticMonthlyMapper.getAllStatisticMonthlyList();
    }
    
    @Override
    public void save(StatisticMonthly statisticMonthly) {
        statisticMonthlyMapper.save(statisticMonthly);
    }

    @Override
    public void update(StatisticMonthly statisticMonthly) {
        statisticMonthlyMapper.update(statisticMonthly);
    }

    @Override
    public void deleteById(Integer id) {
        statisticMonthlyMapper.deleteById(id);
    }

    @Override
    public List<StatisticMonthly> countPartner(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.countPartner(statisticMonthlyQueryDto);
    }

    @Override
    public List<StatisticMonthly> countAccount(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.countAccount(statisticMonthlyQueryDto);
    }

    @Override
    public List<StatisticMonthly> countLoan(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.countLoan(statisticMonthlyQueryDto);
    }

    @Override
    public List<StatisticMonthlyDto> getStatisticMonthlyDtoListByCondition(
            StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.getStatisticMonthlyDtoListByCondition(statisticMonthlyQueryDto);
    }

    @Override
    public List<StatisticMonthlyDto> groupStatisticMonthlyDtoListByCondition(
            StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.groupStatisticMonthlyDtoListByCondition(statisticMonthlyQueryDto);
    }

    @Override
    public Integer groupStatisticMonthlyCountByCondition(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        return statisticMonthlyMapper.groupStatisticMonthlyCountByCondition(statisticMonthlyQueryDto);
    }

    @Override
    public void deleteByYearMonth(StatisticMonthlyQueryDto statisticMonthlyQueryDto) {
        // TODO Auto-generated method stub
        statisticMonthlyMapper.deleteByYearMonth(statisticMonthlyQueryDto);
    }

}
